﻿using spriteeditor;
using spriteeditor.Renderer;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ttbit.WorkingSpace;

namespace pixeleditor.Editor
{
    public interface IWorkResourceEditor
    {
        string TypeName { get; }
        /// <summary>
        ///将可控制的UI都集中在了EditorApp中 
        ///app.EditorAreaInspector
        ///app.EditorAreaFunction
        ///app.EditorAreaInspector
        /// </summary>
        /// <param name="app"></param>
        /// <param name="resource"></param>
        void OnActive(EditorApp app, IWorkResource resource);
        void OnDeactive(EditorApp app);
        void OnRender(TTRender2 graphics);
        void OnPointDown(int id, int x, int y);
        void OnPointMove(int id, int x, int y);
        void OnPointUp(int id, int x, int y);
        void OnPropChange();
    }
}
